package com.unknownman.block.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * NFT转账记录表，根据链的区块来扫描。
 * </p>
 *
 * @author xhy
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TNftTransRecord对象", description="NFT转账记录表，根据链的区块来扫描。")
public class TNftTransRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "nft_trans_record_id", type = IdType.AUTO)
    private Long nftTransRecordId;

    @ApiModelProperty(value = "所属合约id")
    private Long contractConfigId;

    @ApiModelProperty(value = "nft关联id")
    private Long nftId;

    @ApiModelProperty(value = "所在合约tokenid")
    private Long tokenId;

    @ApiModelProperty(value = "交易hash")
    private String transactionHash;

    @ApiModelProperty(value = "区块高度")
    private Long blockNumber;

    @ApiModelProperty(value = "转出地址，如果没有交易地址那以为零地址，根据区块的信息")
    private String fromAddress;

    @ApiModelProperty(value = "转入地址，根据区块的信息")
    private String toAddress;

    private String nftAddress;

    private String createBy;

    private Date createDate;

    /**
     * 所在区块时间戳
     */
    private Date blockTimestamp;


}
